package ma.techit.pfe.agence.voyage.controller;

import javax.servlet.http.HttpSession;

import ma.techit.pfe.agence.voyage.bo.interfaces.ServiceVolBoIn;
import ma.techit.pfe.agence.voyage.model.Consommateur;
import ma.techit.pfe.agence.voyage.model.ServiceVol;
import ma.techit.pfe.agence.voyage.model.Utilisateur;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.SessionAttributes;



@Controller
@SessionAttributes({ "userSession" })    
public class Administrateur_Controller {
	
	@Autowired
	ServiceVolBoIn serviceVolBo;

	@RequestMapping(value = "/gererConsommateur", method = RequestMethod.GET)
		public String renderManagementCusmerView(ModelMap model) {
		
			return "gererConsommateur";
}
	@RequestMapping(value = "/gererFournisseur", method = RequestMethod.GET)
	public String renderManagementProviderView(ModelMap model) {
		return "gererFournisseur";
}
	
	@RequestMapping(value = "/gererServiceVol", method = RequestMethod.GET)
	public String managementVolService(HttpSession session){
		return "gererServiceVol";
	}
	@RequestMapping(value = "/gererServiceHotel", method = RequestMethod.GET)
	public String managementHotelService(HttpSession session){
		return "gererServiceHotel";
	}
	@RequestMapping(value = "/gererServiceVoiture", method = RequestMethod.GET)
	public String managementVoitureService(HttpSession session){
		return "gererServiceVoiture";
	}
	
	
}